package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.entity.EmergencyShelter;
import com.css.fxfzypg.modules.baseData.queryParams.EmergencyShelterQueryParams;
import org.springframework.data.domain.Page;

import java.sql.Timestamp;
import java.util.List;

public interface EmergencyShelterRepository {
    //GasstationDataVO updateElevation(GasstationDataVO gasstationDataVO);
    EmergencyShelter saveEmergencyShelter(EmergencyShelter emergencyShelter);
    Page<EmergencyShelter> getAllEmergencyShelterParams(EmergencyShelterQueryParams queryParams);
    EmergencyShelter getEmergencyShelterById(Integer id);
    void deleteEmergencySheltersById(List<Integer> ids, Timestamp timestamp);
    List<EmergencyShelter> getAll();
    void importExcel(List<EmergencyShelter> emergencyShelters);

    List<EmergencyShelter> getEmergencyShelter(String influenceflyId);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
